﻿#ifndef _OI_PLSCANNER_DATACROP_HPP_
#define _OI_PLSCANNER_DATACROP_HPP_

#include "View/OiLayer.hpp"

namespace Oi
{
    namespace PLScannerCore
    {
        class OI_PLSCANNER_CORE_API DataCropTool : public View::Layer
        {
            Q_OBJECT

        public:

            DataCropTool();

            virtual ~DataCropTool();

        public:
            virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget);
            virtual void hoverMoveEvent(QGraphicsSceneHoverEvent *event);
            virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);

        public:
            static void autoCutData();


        private:
            OI_DISABLE_COPY(DataCropTool);
            OI_DECLARE_IMPL(DataCropTool);
        };
    }
}

#endif